/**
 * Created by kaibb on 2016/6/10.
 */
$(document).ready(function () {
    $('#fullpage').fullpage({
        anchors: ['firstPage', 'secondPage', 'thirdPage', 'fourthPage'],
        sectionsColor: ['#1bbc9b', '#4BBFC3', '#7BAABE', '#f90'],
        navigation: true,
        menu: "#menu",
        afterLoad: function (anchorLink, index) {
            var leavingSlide = $(this);
            leavingSlide.find("p").addClass('animated');
        },
        onLeave: function (index, nextIndex, direction) {
            var leavingSection = $(this);
            leavingSection.find("p").removeClass('animated');
        }
    })
    ;
});